home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1995 March / Macworld CD-ROM (March 1995).cdr / Updaters / AppMaker 1.5.2->1.5.4 / Libraries / THINK / AMClassLibC / CAMIntegerText.cp < prev    next >
Encoding:
Text File  |  1991-08-22  |  1.1 KB  |  35 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2.  CAMIntegerText.c
  3.  
  4.                             The AMIntegerText Class
  5.                             
  6.     Like the IntegerText class that it overrides, except that font, size and
  7.     style can be set from an 'AITx' resource.
  8.         
  9.     SUPERCLASS = CIntegerText
  10.     
  11.     Copyright © 1991 Bowers Development Corporation. All rights reserved.
  12.  
  13.  ******************************************************************************/
  14.  
  15. #include "CAMIntegerText.h"
  16.  
  17. /******************************************************************************
  18.  IViewTemp
  19.  
  20.         Initialize an AMIntegerText object using a template
  21.  ******************************************************************************/
  22.  
  23. void    CAMIntegerText::IViewTemp    (CView            *anEnclosure,
  24.                                      CBureaucrat    *aSupervisor,
  25.                                      Ptr            viewData)
  26. {
  27.     register         AMIntegerTextTempP    p;
  28.     
  29.     p = (AMIntegerTextTempP) viewData;    /* Initialize superclass            */
  30.     inherited::IViewTemp (anEnclosure, aSupervisor, (Ptr) &p->sIntegerTextTemp);
  31.     AMSetFontSizeStyle (this, &p->typeStyle);
  32.  
  33. }    /* IViewTemp */
  34.         
  35. /* CAMIntegerText */